package com.group3.merchant.utils;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletResponse;

public class SenderUtil {
	public static void send(Map<String, Object> map, HttpServletResponse response) throws IOException {
		response.setContentType("application/json;charset=utf-8");
		String data = JsonUtil.getInstance().ObjectToJson(map);
		PrintWriter writer = response.getWriter();
		writer.write(data);
	}
}	
